alias cp='cp';
cd ..;
JAR_MANAGE_HOME=$(cd `dirname $0`; pwd);
HOME_PATH=${JAR_MANAGE_HOME//\//\\\/};
cp -f $JAR_MANAGE_HOME/autodepoly-linux/jarmanage.service /etc/systemd/system/jarmanage.service;
cp -f $JAR_MANAGE_HOME/autodepoly-linux/jarmanagestart.sh /etc/systemd/system/jarmanagestart.sh;
cp -f $JAR_MANAGE_HOME/autodepoly-linux/jarmanagestop.sh /etc/systemd/system/jarmanagestop.sh;
sed -i "s/JAR_MANAGE_HOME_PATH/$HOME_PATH/g" /etc/systemd/system/jarmanagestop.sh;
sed -i "s/JAR_MANAGE_HOME_PATH/$HOME_PATH/g" /etc/systemd/system/jarmanagestart.sh;
chmod u+x $JAR_MANAGE_HOME/autodepoly-linux/jarmanage.sh;
systemctl reset-failed;
systemctl start jarmanage